<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<LINK REL="shortcut icon" HREF="http://mqbook.googlecode.com/svn/trunk/favicon.ico"/>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="cache-control" content="max-age=200" />
<link href="http://mqbook.googlecode.com/svn/trunk/style.css" media="handheld, screen" rel="stylesheet" type="text/css" />
<title>MMI QuickBook</title>
</head>
<FORM NAME="book" ACTION="" METHOD="GET"> <BR><br>
<INPUT TYPE="hidden" NAME="conf" id="src" >
</FORM>
<body>
<h2 align = "center"> <strong>MMI QuickBook</strong> </h2>
<div id="" align ="center">
		<div class="">
<script language="javascript">
var locate = window.location
document.book.conf.value = locate

var text = document.book.conf.value

var zork = delineate(text)
document.book.conf.value = zork

function delineate(str)
{
theleft = str.indexOf("=") + 1;
theright = str.lastIndexOf("&");
return(str.substring(theleft, theright));
}

document.write("<iframe src='http://calendar.google.com/a/motorola.com/embed?mode=WEEK&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;height=600&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;src="
+ delineate(text) + "&amp;ctz=America%2FChicago' style= border-width:0 width=450 height=400 frameborder=0 scrolling=yes></iframe>");
function gosearch() { 
var room = document.getElementById('src').value;
var searchstring = document.getElementById('searchfield').value; 
var searchsite = "https://calendar.google.com/a/motorola.com/event?action=TEMPLATE&text=Book Now&dates=20110501T130000Z/20110501T240000Z&details=&location=&add="; 
var searchurl = searchsite + room;

window.location.href = searchurl; 
} 
</SCRIPT>
<br>
<input type="hidden" name="searchfield" id="searchfield" value="" /><br>
<strong>Meeting Start Date and Time</strong><br> <br>
Month <select id="month">
  <option value="01">Jan</option>
  <option value="02">Feb</option>
  <option value="03">Mar</option>
  <option value="04">Apr</option>
  <option value="05">May</option>
  <option value="06">Jun</option>
  <option value="07">Jul</option>
  <option value="08">Aug</option>
  <option value="09">Sep</option>
  <option value="10">Oct</option>
  <option value="11">Nov</option>
  <option value="12">Dec</option>
</select> &nbsp;
Day <select id="day">
  <option value="01">01</option>
  <option value="02">02</option>
  <option value="03">03</option>
  <option value="04">04</option>
  <option value="05">05</option>
  <option value="06">06</option>
  <option value="07">07</option>
  <option value="08">08</option>
  <option value="09">09</option>
  <option value="10">10</option>
  <option value="11">11</option>
  <option value="12">12</option>
  <option value="13">13</option>
  <option value="14">14</option>
  <option value="15">15</option>
  <option value="16">16</option>
  <option value="17">17</option>
  <option value="18">18</option>
  <option value="19">19</option>
  <option value="20">20</option>
  <option value="21">21</option>
  <option value="22">22</option>
  <option value="23">23</option>
  <option value="24">24</option>
  <option value="25">25</option>
  <option value="26">26</option>
  <option value="27">27</option>
  <option value="28">28</option>
  <option value="29">29</option>
  <option value="30">30</option>
  <option value="31">31</option>
</select>&nbsp;
Time <select id="Hour">
  <option value="050000">12:00am</option>
  <option value="060000">1:00am</option>
  <option value="070000">2:00am</option>
  <option value="080000">3:00am</option>
  <option value="090000">4:00am</option>
  <option value="100000">5:00am</option>
  <option value="110000">6:00am</option>
  <option value="120000">7:00am</option>
  <option value="130000">8:00am</option>
  <option value="140000">9:00am</option>
  <option value="150000">10:00am</option>
  <option value="160000">11:00am</option>
  <option value="170000">12:00pm</option>
  <option value="180000">1:00pm</option>
  <option value="190000">2:00pm</option>
  <option value="200000">3:00pm</option>
  <option value="210000">4:00pm</option>
  <option value="220000">5:00pm</option>
  <option value="230000">6:00pm</option>
  <option value="240000">7:00pm</option>
  <option value="010000">8:00pm</option>
  <option value="020000">9:00pm</option>
  <option value="030000">10:00pm</option>
  <option value="040000">11:00pm</option>
</select><br><br><br><br>
<strong>Meeting End Date and Time</strong><br><br>
Month <select id="month1">
  <option value="01">Jan</option>
  <option value="02">Feb</option>
  <option value="03">Mar</option>
  <option value="04">Apr</option>
  <option value="05">May</option>
  <option value="06">Jun</option>
  <option value="07">Jul</option>
  <option value="08">Aug</option>
  <option value="09">Sep</option>
  <option value="10">Oct</option>
  <option value="11">Nov</option>
  <option value="12">Dec</option>
</select>
Day <select id="day1">
  <option value="01">01</option>
  <option value="02">02</option>
  <option value="03">03</option>
  <option value="04">04</option>
  <option value="05">05</option>
  <option value="06">06</option>
  <option value="07">07</option>
  <option value="08">08</option>
  <option value="09">09</option>
  <option value="10">10</option>
  <option value="11">11</option>
  <option value="12">12</option>
  <option value="13">13</option>
  <option value="14">14</option>
  <option value="15">15</option>
  <option value="16">16</option>
  <option value="17">17</option>
  <option value="18">18</option>
  <option value="19">19</option>
  <option value="20">20</option>
  <option value="21">21</option>
  <option value="22">22</option>
  <option value="23">23</option>
  <option value="24">24</option>
  <option value="25">25</option>
  <option value="26">26</option>
  <option value="27">27</option>
  <option value="28">28</option>
  <option value="29">29</option>
  <option value="30">30</option>
  <option value="31">31</option>
</select>
Time <select id="Hour1">
  <option value="050000">12:00am</option>
  <option value="060000">1:00am</option>
  <option value="070000">2:00am</option>
  <option value="080000">3:00am</option>
  <option value="090000">4:00am</option>
  <option value="100000">5:00am</option>
  <option value="110000">6:00am</option>
  <option value="120000">7:00am</option>
  <option value="130000">8:00am</option>
  <option value="140000">9:00am</option>
  <option value="150000">10:00am</option>
  <option value="160000">11:00am</option>
  <option value="170000">12:00pm</option>
  <option value="180000">1:00pm</option>
  <option value="190000">2:00pm</option>
  <option value="200000">3:00pm</option>
  <option value="210000">4:00pm</option>
  <option value="220000">5:00pm</option>
  <option value="230000">6:00pm</option>
  <option value="240000">7:00pm</option>
  <option value="010000">8:00pm</option>
  <option value="020000">9:00pm</option>
  <option value="030000">10:00pm</option>
  <option value="040000">11:00pm</option>
</select>
<br>
<br>
<input type="image" src ="booknow.png" name="gobutton" id="gobutton" value="" onclick="gosearch();" />
</body>
</html>